package com.team.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 医生排期表
 * @TableName schedule
 */
@TableName(value ="schedule")
public class Schedule implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户表主键ID
     */
    private Long userId;

    /**
     * 就诊科室表主键ID
     */
    private Long departmentId;

    /**
     * 就诊房间表主键ID
     */
    private Long roomId;

    /**
     * 值班时间段 1-->上午，2-->下午
     */
    private Integer sign;

    /**
     * 诊断病人数量
     */
    private Integer quantity;

    /**
     * 剩余诊断病人数量
     */
    private Integer remainingQuantity;

    /**
     * 问诊时间
     */
    private Date inquiryTime;

    /**
     * 创建时间
     */
    private Date createdTime;

    /**
     * 修改时间
     */
    private Date updatedTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 用户表主键ID
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * 用户表主键ID
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * 就诊科室表主键ID
     */
    public Long getDepartmentId() {
        return departmentId;
    }

    /**
     * 就诊科室表主键ID
     */
    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 就诊房间表主键ID
     */
    public Long getRoomId() {
        return roomId;
    }

    /**
     * 就诊房间表主键ID
     */
    public void setRoomId(Long roomId) {
        this.roomId = roomId;
    }

    /**
     * 值班时间段 1-->上午，2-->下午
     */
    public Integer getSign() {
        return sign;
    }

    /**
     * 值班时间段 1-->上午，2-->下午
     */
    public void setSign(Integer sign) {
        this.sign = sign;
    }

    /**
     * 诊断病人数量
     */
    public Integer getQuantity() {
        return quantity;
    }

    /**
     * 诊断病人数量
     */
    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    /**
     * 剩余诊断病人数量
     */
    public Integer getRemainingQuantity() {
        return remainingQuantity;
    }

    /**
     * 剩余诊断病人数量
     */
    public void setRemainingQuantity(Integer remainingQuantity) {
        this.remainingQuantity = remainingQuantity;
    }

    /**
     * 问诊时间
     */
    public Date getInquiryTime() {
        return inquiryTime;
    }

    /**
     * 问诊时间
     */
    public void setInquiryTime(Date inquiryTime) {
        this.inquiryTime = inquiryTime;
    }

    /**
     * 创建时间
     */
    public Date getCreatedTime() {
        return createdTime;
    }

    /**
     * 创建时间
     */
    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    /**
     * 修改时间
     */
    public Date getUpdatedTime() {
        return updatedTime;
    }

    /**
     * 修改时间
     */
    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Schedule other = (Schedule) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getRoomId() == null ? other.getRoomId() == null : this.getRoomId().equals(other.getRoomId()))
            && (this.getSign() == null ? other.getSign() == null : this.getSign().equals(other.getSign()))
            && (this.getQuantity() == null ? other.getQuantity() == null : this.getQuantity().equals(other.getQuantity()))
            && (this.getRemainingQuantity() == null ? other.getRemainingQuantity() == null : this.getRemainingQuantity().equals(other.getRemainingQuantity()))
            && (this.getInquiryTime() == null ? other.getInquiryTime() == null : this.getInquiryTime().equals(other.getInquiryTime()))
            && (this.getCreatedTime() == null ? other.getCreatedTime() == null : this.getCreatedTime().equals(other.getCreatedTime()))
            && (this.getUpdatedTime() == null ? other.getUpdatedTime() == null : this.getUpdatedTime().equals(other.getUpdatedTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getRoomId() == null) ? 0 : getRoomId().hashCode());
        result = prime * result + ((getSign() == null) ? 0 : getSign().hashCode());
        result = prime * result + ((getQuantity() == null) ? 0 : getQuantity().hashCode());
        result = prime * result + ((getRemainingQuantity() == null) ? 0 : getRemainingQuantity().hashCode());
        result = prime * result + ((getInquiryTime() == null) ? 0 : getInquiryTime().hashCode());
        result = prime * result + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
        result = prime * result + ((getUpdatedTime() == null) ? 0 : getUpdatedTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", roomId=").append(roomId);
        sb.append(", sign=").append(sign);
        sb.append(", quantity=").append(quantity);
        sb.append(", remainingQuantity=").append(remainingQuantity);
        sb.append(", inquiryTime=").append(inquiryTime);
        sb.append(", createdTime=").append(createdTime);
        sb.append(", updatedTime=").append(updatedTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}